import permission from './permission'
import menu from './menu'

const install = function(Vue) {
  Vue.directive('permission', permission)
  // Vue.directive('menu', menu)
}

if (window.Vue) {
  window['permission'] = permission
  // window['menu'] = menu
  Vue.use(install); // eslint-disable-line
}

permission.install = install
menu.install = install
export default {
  permission
  // menu
}
